package com.bamboo.tool.template.export.enums;

import cn.hutool.core.io.FileUtil;
import com.bamboo.tool.config.RestfulCloudApplicationCache;
import lombok.Getter;

@Getter
public enum ExportFileType {

//    HTML("html", "/template/html", "html.ftl",".html"),
//    WORD("doc", "/template/doc", "doc.ftl",".doc"),
    MD("md", RestfulCloudApplicationCache.getDataPath()+ "/template/markdown", "md.ftl",".md"),
    ;

    private final String code;

    private final String templatePath;
    private final String templateName;
    private final String fileSuffixName;

    ExportFileType(String code, String templatePath, String templateName,String fileSuffixName) {

        this.code = code;
        this.templatePath = templatePath;
        this.templateName = templateName;
        this.fileSuffixName = fileSuffixName;
    }

    @Override
    public String toString() {
        return code;
    }
}
